﻿using System.Data.Entity.ModelConfiguration;

using EditorialProyectos.Business.Entities;

namespace EditorialProyectos.DataAccess.Configurations
{
    internal class UserConfiguration : EntityTypeConfiguration<User>
    {
        public UserConfiguration()
        {
            HasMany(e => e.Projects)
                .WithRequired(r => r.User)
                .HasForeignKey(r => r.UserId);
        }
    }
}
